import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    // component: () => import('../views/Home.vue'),
    component: Home,
    meta:{title:'',showNav:true}

  },
  {
    path: '/recommend',
    component: ()=>import('@/views/Recommend'),
    // component: Recommend,
    meta:{title:'',showNav:true}
  },
  {
    path: '/hot',
    component: () => import('../views/Hot.vue'),
    meta:{title:'',showNav:true}

  },
  {
    path: '/search',
    component: () => import('../views/Search.vue'),
    meta:{title:'',showNav:true}

  },
  {
    path: '/playlist/:id',
    component: () => import('../views/PlayList.vue'),
  },
  {
    path: '/comments/:id',
    component: () => import('../views/Comments.vue'),
  },
  {
    path: '/artists/:id',
    component: () => import('../views/Artists.vue'),
  },
  {
    path: '/albums/:id',
    component: () => import('../views/Album.vue'),
  },
 
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
